package cn.exrick.xboot.modules.content.controller;


import cn.exrick.xboot.common.utils.ResultUtil;
import cn.exrick.xboot.common.vo.Result;
import cn.exrick.xboot.modules.content.entity.HontDepartmentPost;
import cn.exrick.xboot.modules.content.service.mybatis.IHontDepartmentPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zy
 * @since 2022-10-19
 */
@RestController
@RequestMapping("/xboot/hontDepartmentPost")
public class HontDepartmentPostController {
    @Autowired
    private IHontDepartmentPostService hontDepartmentPostService;
    /**
     * 根据模板id获取被审核人
     * @param templateId
     * @return
     */
    @ResponseBody
    @RequestMapping(method = RequestMethod.POST, value = "/getHontPostByDepartId")
    public Result<Object> getHontPostByDepartId(String departId) {
        return ResultUtil.data(hontDepartmentPostService.getHontPostByDepartId(departId));
    }
}

